<div id="banner"><img src="<?php echo $this->baseUrl;?>/banner/cars.png" style="width: 100%;" />
    <div class="title"><?php echo $this->title; ?></div>
</div>

<div id="content2">
    <?php if (isset($this->alert)) { ?>
        <table class="content">
            <tr>
                <td>
                    <h3>  <?php echo $this->alert; ?></h3>
                </td>
            </tr>
        </table>
    <?php } ?>
    
    
    <div class="block">
        <h1><?php echo $this->movie['Title']; ?>
        <img src="<?php echo $this->baseUrl; ?>/img/esrb/<?php echo $this->movie["ESRB"]; ?>.gif" style="vertical-align: middle; height: 30px; " />
        </h1>
        <table class="content">
        	<tr>
        		<td>
        	        <img src="<?php echo $this->baseUrl; ?>/posters/<?php echo $this->movie['Poster']; ?>" style="max-height: 500px; max-width: 900px;"/>		
        			<ul>
        				  <li>Running Time: <b><?php echo $this->movie["RunningTime"]; ?> min </b></li>
                          <li>Release Date: <b><?php echo date("m/d/Y", strtotime($this->movie["D_Release"])); ?></b></li>
        				  <li><b>Actors: </b><?php foreach ($this->actors as $actor) { 
                                echo "<a href='".$this->baseUrl."/Actor/actor/id/".$actor["Actor_ID"]."'>".$actor["Name"]."</a> ";
                            }
                            ?>
                          </li>
                          <hr />
                          <?php echo $this->movie["Description"]; ?>
                          <hr />
        			</ul>
        		</td>
        	</tr>
        </table>
    </div>
    
    <?php include("commentForm.phtml"); ?>
    
    <?php foreach ($this->comments as $comment) { ?> 
       <div class="block">
       		<b><?php echo $comment["Grade"]; ?></b> / 5 <br />
       		<b><?php echo $comment["Login"]; ?> : </b>
       		"<?php echo $comment["Comment"]; ?>"
       </div>
    <?php } ?>
</div>

